f6a5908577dcd464fd9d9a0496a0da84f2e779cb,src/main/java/net/foxdenstudio/sponge/foxguard/plugin/command/CommandLink.java,CommandLink,getSuggestions,#CommandSource#String#Location#,134

Before Change


                        .map(args -> parse.current.prefix + args)
                        .collect(GuavaCollectors.toImmutableList());
            } else if (parse.current.index == 1) {
                IRegion region = FGManager.getInstance().getRegion(parse.args[0]);
                if (region == null) {
                    String worldName = parse.flags.get("world");
                    World world = null;
                    if (source instanceof Locatable) world = ((Locatable) source).getWorld();
                    if (!worldName.isEmpty()) {
                        Optional<World> optWorld = Sponge.getGame().getServer().getWorld(worldName);
                        if (optWorld.isPresent()) {
                            world = optWorld.get();
                        }
                    }
                    if (world != null) {
                        region = FGManager.getInstance().getWorldRegion(world, parse.args[0]);
                    }
                }

After Change


                        .map(args -> parse.current.prefix + args)
                        .collect(GuavaCollectors.toImmutableList());
            } else if (parse.current.index == 1) {
                IRegion region = FGManager.getInstance().getRegion(parse.args[0]).orElse(null);
                if (region == null) {
                    String worldName = parse.flags.get("world");
                    World world = null;
                    if (source instanceof Locatable) world = ((Locatable) source).getWorld();
                    if (!worldName.isEmpty()) {
                        Optional<World> optWorld = Sponge.getGame().getServer().getWorld(worldName);
                        if (optWorld.isPresent()) {
                            world = optWorld.get();
                        }
                    }
                    if (world != null) {
                        region = FGManager.getInstance().getWorldRegion(world, parse.args[0]).orElse(null);
                    }
                }